<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "../setting/left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="基金收支管理">
                        <#include "../setting/banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                        
                            <#if troubleDonateList??>
								<form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                            <td>ID</td>
                                            <td>时间</td>
                                            <td>用途</td>
                                            <td>金额</td>
                                            <td>收支状态</td>
                                            <td>约定还款时间</td>
                                            <td>归还情况</td>
                                            <td>备注</td>
                                            <td>操作</td>
                                        </tr>
                                        <#list troubleDonateList as item>
                                            <tr class="s">
                                                <td>${(item_index+1)}</td>
                                                 <td>${dateformat(item.addtime!"")}</td>
                                                <td >${item.borrow_use!"ERROR!"}</td>
                                                <td>${item.money!}</td>
                                                <td ><#if item.status==0>收入<#else>支出</#if></td>
                                                <td>${item.repayment_time!""}</td>
                                               <td>${item.borrow_content!}</td>
                                               <td>${item.remark!}</td>
                                                <td><a href="troubleFund.html?id=${item.id}">修改</a></td>
                                            </tr>
                                        </#list>
                                        <tr>
								<td colspan="11" class="page">
									<div align="center">
										<#import "../../common/page.html" as pager>  
			         	 				<@pager.pagination page=page url="/admin/troublefund/troubleFund.html?type=list" map=param style="style1"  />
		         	 				</div>  
								</td>
							</tr>
                                    </table>
                                </form>
							<#else>
                               <form action="${request.getContextPath()}/admin/troublefund/troubleFund.html" method="post">
							        <div id="parametersTab">
							            <div class="customer-info ii">
							                <table class="data-list">
							             
							                            <tr class="s">
							                                <td class="r">用途：</td>
							                                <td class="m">
							                                    <input class="parameters-val" type="text" name="borrow_use" value="<#if troubleDonateRecord??&&troubleDonateRecord.borrow_use??>${troubleDonateRecord.borrow_use}</#if>" />
							                                </td>
							                            </tr>
							                              <tr class="s">
							                                <td class="r">金额：</td>
							                                <td class="m">
							                                    <input class="parameters-val" type="text" name="money" value="<#if troubleDonateRecord??&&troubleDonateRecord.money??>${((troubleDonateRecord.money)!c)?string("##.##")}</#if>" onKeyUp="value=value.replace(/[^0-9]/g,'')"/>
							                                </td>
							                            </tr>
							                          <#if troubleDonateRecord??>
							                             <tr class="s">
							                                <td class="r">收支状态：</td>
							                                <td class="m">
							                                    <input  type="radio" name="status" value="0" <#if troubleDonateRecord??&&troubleDonateRecord.status==0>checked="checked"<#else></#if>/>收入
							                                   <input  type="radio" name="status" value="1" <#if troubleDonateRecord??&&troubleDonateRecord.status==1>checked="checked"<#else></#if>/>支出
							                                    
							                                </td>
							                            </tr>
							                            <#else>
							                             <tr class="s">
							                                <td class="r">收支状态：</td>
							                                <td class="m" style="text-align:left;">
							                                    <input  type="radio" name="status" value="0" checked="checked"/>收入
							                                   <input  type="radio" name="status" value="1" />支出
							                                    
							                                </td>
							                            </tr>
							                            </#if>
							                             <tr class="s">
							                                <td class="r">约定还款时间：</td>
							                                <td class="m">
							                                    <input class="_search-value js-datetime" type="text" name="repayment_time" value="<#if troubleDonateRecord??&&troubleDonateRecord.repayment_time??>${troubleDonateRecord.repayment_time}</#if>" />
							                                </td>
							                            </tr>
							                             <tr class="s">
							                                <td class="r">归还情况：</td>
							                                <td class="m">
							                                    <input class="parameters-val" type="text" name="borrow_content" value="<#if troubleDonateRecord??&&troubleDonateRecord.borrow_content??>${troubleDonateRecord.borrow_content}</#if>" />
							                                </td>
							                            </tr>
							                             <tr class="s">
							                                <td class="r">备注：</td>
							                                <td class="m">
							                                    <input class="parameters-val" type="text" name="remark" value="<#if troubleDonateRecord??&&troubleDonateRecord.remark??>${troubleDonateRecord.remark}</#if>" />
							                                </td>
							                            </tr>
							                             
							                </table>
							            </div>
							        </div>
							
							
							        <div id="bottomToolbar" class="clearfix">
							            <input type="submit" class="input-button post" value="提交"> 
							            <#if troubleDonateRecord??>
							            <input type="hidden" class="input-button post" value="update" name="type">
							            <input type="hidden" class="input-button post" value="${troubleDonateRecord.id}" name="id">
							            
							            <#else>
							            <input type="hidden" class="input-button post" value="add" name="type">
                                    
							            </#if>
							        </div>
								</form>
	                        </#if>
 </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>
    
    </body>
</html>
<#include "../jsPage.html">